{% extends "cms/cms_base.html" %}
{% block title %}
    个人中心
{% endblock %}
{% block content %}
    <table class="table table-bordered">
        <tr>
            <td>用户名</td>
            <td>{{ g.cms_user.username }}</td>
        </tr>
        <tr>
            <td>邮箱</td>
            <td>{{ g.cms_user.email }}</td>
        </tr>
        <tr>
            <td>角色</td>
            <td>
                {% for role in g.cms_user.roles %}
                    {{ role.name }}
                    {% if not loop.last %}
                        ，
                    {% endif %}
                {% endfor %}
            </td>
        </tr>
        <tr>
            <td>权限</td>
            <td>
                {% for role in g.cms_user.roles %}
                    {{ role.desc }}
                    {% if not loop.last %}
                        ，
                    {% endif %}
                {% endfor %}
            </td>
        </tr>
        <tr>
            <td>创建时间</td>
            <td>{{ g.cms_user.created_time }}</td>
        </tr>
    </table>
{% endblock %}